package com.atguigu.gmall.list.service.impl;

import com.atguigu.gmall.list.service.SearchHistoryObserver;
import org.springframework.stereotype.Component;

@Component
public class DatabaseSearchHistoryObserver implements SearchHistoryObserver {
    @Override
    public void updateSearchHistory(String userId, String keyword) {
        // 将搜索历史存入数据库的逻辑
        // ...
    }
}


